<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>生成单页内容</title>
<link rel="stylesheet" type="text/css" href="template/admin.css"/>
<script type="text/javascript" src="template/images/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){

	$('tbody').find('tr').hover(function(){
		//$(this).css('background','#ccc');
	},function(){
		//$(this).css('background','none');
	});
	
});

function all_sl(str){
		$ck=$('#'+str).attr('checked');
		if($ck){
			$('table').find('#'+str).find('input').attr('checked','checked');
		}else{
			$('table').find('#'+str).find('input').attr('checked','');
		}
	}

</script>
<?php
	$tech_num = (count($tech_arr)-1);
	$show_tech = $tech_arr[rand(0,$tech_num)];
?>
<script type="text/javascript">
	$(document).ready(function(){
		$str = '<?php echo $show_tech;?>';
		$('#show_tech').html("<em>小提示：</em>"+$str).fadeIn('slow');
	});
</script>
</head>

<body>
<div class="admin_position"><span>当前位置 > 生成单页内容</span><p id="show_tech" style="display:none"></p></div><!--位置-->

<div class="div_out">
 		<div class="lang">
			<ul>
			 <?php
 $cache_file=DATA_PATH."cache/lang_cache.php";
 $cache_arr=read_cache($cache_file,'lang_cache');
 if(!empty($cache_arr)){
 foreach($cache_arr as $k=>$v){
  if(!$v['lang_is_use']){continue;}
 ?>
 <li><a href="?action=alone&lang=<?php echo $v['lang_tag'];?>" class="<?php if($GLOBALS['lang']==$v['lang_tag']){echo 'hover';}?>"><?php echo $v['lang_name'];?></a></li>
 <?php
 }
 }
 ?>
			</ul>
		</div><!--语言-->
<div class="order_contain">				
<form name="maininfo" method="post" action="?action=alone_htm" class="form">
<div class="order_main">
 <table cellpadding="0" cellspacing="0" width="100%">
 	<thead>
		<tr><th style="width:15%">参数说明</th><th style="width:85%">参数值</th></tr>
	</thead>
	<tbody>
		<tr>
		  <td style="width:15%;text-align:center" class="w1">选择栏目：<input type="checkbox" style="border:0" value="" name="all_3" id="all" onclick="all_sl('all');"  title="全选"/></td><td style="width:85%" id="all"><?php
	if(!empty($cate_list)){
	foreach($cate_list as $key=>$value){
	if($value['cate_tpl']=='3'&&$value['cate_html']){
	?>
	<label for="<?php echo $value['id'];?>"><input id="<?php echo $value['id'];?>" type="checkbox" name="cate[]" value="<?php echo $value['id'];?>" style="margin:0 5px; margin-left:8px;border:0"/><?php echo $value['cate_name'];?></label>
	<?php
	}
	}
	}
	?>
	</td>
		</tr>
		
	</tbody>
 </table>
 </div>
<div class="order_btn">
<input name="lang" type="hidden" value="<?php echo $lang?>" /><input name="cate_is" value="1" type="hidden" />
  <input type="submit" value="确定" name="submit"/><input type="reset" style="margin:0 10px;" value="重置" name="reset"/>
 </div>
</form>
</div>
<div style="font-size:12px; color:#CCCCCC; padding:5px 0; text-align:center">powerd by <a href="http://fsai.cn" style="color:#CCCCCC" target="_blank">FOXSCMS</a></div>
</body>
</html>
